{temp('html/recruit/pc/head')}
</head>
<body>
	<!--容器-->
	{temp('html/recruit/pc/firm/head')}
		<!--头部结束-->

		<!--主体内容-->
		<div class="w_bai dis_inline t_m10 t_c">
			<!--详细-->
			<div class="w_1100 auto_0">
				<!--左侧-->
				<div class="w_286 f_l c_656565 bc_FFF bor_C6 xddw" style="margin-top:-61px">
					<!--右阴影图片-->
					<div class="f_r xddw" style="margin-right:-38px;margin-top:-1px">
						<img src="{$style}/images/yinying_you2.png">
					</div>
					<!--右阴影图片结束-->
					<!--标题-->
					<div class="h_50 l_h50 f_s18 bc_127ABF c_FFF t_l">
						<span class="l_m20">简历管理</span>
					</div>
					<!--标题结束-->
					<!--列表-->
					<div id="geren_zuo">
						<ul>
							<li id="list">
								<div class="f_l shoudaojianli2"></div>
								<div class="dis_inline l_m10">
									<a href="{$_url}/?act=firm&met=jianli">收到的简历</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>

							<li id="list2">
								<div class="f_l t_m3 downjianli"></div>
								<div class="dis_inline l_m7">
									<a href="{$_url}/?act=firm&met=xzjl">下载的简历</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>
						</ul>
					</div>
					<!--列表结束-->
				</div>
				<div class="w_804 l_m5 f_r bc_FFF bor_C6 t_l">
					<!--标题-->
					<div class="t_m15 l_m20">
						<span class="f_s20 c_323131">收到的简历</span>
					</div>
					<!--标题结束-->
					<!--分割线-->
					<div class="bor_C6 bor_di_none t_m10"></div>
					<!--分割线结束-->
					<!--搜索及筛选简历-->
					<div class="l_m20 t_m25">
						<!--搜索框-->
						<div class="dis_inline">
							<div class="f_l">
								<div class="select-outer select-wh110" style="margin-top:0px!important;margin-top:1px">
									<div class="select-inner">
										<select class="select-h" id="sous" onChange="xz()">
											<option value="1">求职者姓名</option>
											<option value="2">年龄</option>
											<option value="3">学历</option>
										</select>
									</div>
								</div>
							</div>
							<script type="text/javascript">
								function xz(){
									 var lx = $("#sous").val();
									 if(lx == 3){
										 document.getElementById('gjz').style.display = 'none';
							    		 document.getElementById('xue').style.display = 'block';
									 }else{
										 document.getElementById('gjz').style.display = 'block';
							    		 document.getElementById('xue').style.display = 'none';
									 }
								}
							
								function ckjl(){
									var jlid = $('input:radio[name=xuan]:checked').val();
									if(!jlid){
										alert('请选择简历');return;
									}
									var strs= new Array(); //定义一数组
									strs = jlid.split("_"); //字符分割 
									$.post('{$_url}/?act=firm&met=ztxg',{jid:strs[0],uid:strs[1],zid:strs[2]},function(data){});
									location.href='{$_url}/?act=ruser&met=resume_look&id='+strs[0]+'&uid='+strs[1];
								}
								
								function jlsl_del(jlid){
									$.post('{$_url}/?act=firm&met=tdsc',{jlid:jlid},function(data){
										if(data == 'cg'){
											location.href='{$_url}/?act=firm&met=jianli';
										}else{
											alert(data);
										}
									});
								}
								
								function sous(){
									  var lx = $("#sous").val();
									  if(lx == 3){
										  var gjz = $("#xueli").val(); 
									  }else{ 
										  var gjz = $("#gjz").val(); 
									  }
									  if(lx != 3){
										  if(!gjz || gjz == 0){
											  alert('请输入或选择搜索关键字');return;
										  } 
									  }
									location.href='{$_url}/?act=firm&met=jianli&lx='+lx+'&gjz='+gjz; 
								}
							</script>
							<div class="f_l" >
								<input type="text" class="inp_yan bc_FFF" placeholder="请输入关键词"  id="gjz"
									style="border-left-style:none;_height:34px" />
								<div id="xue" class="f_l" style="margin-left:-1px;margin-top:0px!important;margin-top:1px;display:none">
									<div class="select-outer select-wh120 f_l">
										<div class="select-inner">	
										<select class="select-h" id="xueli">
											{if(@$xl)}
											{foreach($xl as $k1=>$v1)}
											<option value="{$k1}">{$v1}</option>
											{/foreach}
											{/if}	
										</select>
										</div>
									</div>
								</div>
								
							</div>
							<div class="f_l" style="margin-top:0px!important;margin-top:1px;">
								<div class="w_78 h_37 l_h35 t_c f_s16 c_FFF bc_127ABF point" onClick="sous()">搜索</div>
							</div>
						</div>
						<!--搜索框结束-->
					</div>
					<!--搜索及筛选简历结束-->
					<!--操作按钮-->
					<div class="l_m20 t_m20">
						<!--查看简历-->
						<div class="dis_inline w_115 h_35 bc_E16400 c_FFF l_h35 point"
							onclick="ckjl()">
							<div class="f_l t_m12 l_m15 kan3" style="_margin-left:7px"></div>
							<div class="f_l l_m10">查看简历</div>
						</div>
						<!--查看简历结束-->
					</div>
					<!--操作按钮结束-->
					<!--内容-->
					<div class="t_m25 l_m20 b_m50 c_656565">
						<!--列表-->
						<div id="table_jianli">
							<li class="bc_D1D1D1">
								<div class="left1">&nbsp;</div>
								<div class="left9">姓名</div>
								<div class="left3">职位名称</div>
								<div class="left4">年龄</div>
								<div class="left5">学历</div>
								<div class="left7">应聘时间</div>
								<div class="left8">状态</div>
								<div class="right">操作</div>
							</li>
							{if(@$jl['data'])}
							{foreach($jl['data'] as $k=>$v)}
							<li>
								<div class="left1">
									<input type="radio" name="xuan"  style="margin:12px!important;margin:7px" value="{$v['jid']}_{$v['uid']}_{$v['zid']}" />
								</div>
								<div class="left9">{$v['name']}</div>
								<div class="left3">{$v['zhiwei']}</div>
								<div class="left4">{$v['age']}</div>
								<div class="left5">{$v['xueli']}</div>
								<div class="left7">{prt(date('Y-m-d H:i',$v['time']))}</div>
								<div class="left8">{if($v['zt'] == '0')}未读{elseif($v['zt'] == '1')}已读{/if}</div>
								<div class="right point c_1379BF" onClick="jlsl_del({$v['id']})">删除</div>
							</li>
							{/if}
							{else}
							<li>暂无投递简历</li>
							{/if}
						</div>
						<!--列表结束-->
						<div class="qfd"></div>
						<!--翻页-->
						<div class="f_l b_m50" style="margin-top:25px!important;margin-top:0px">
						{if(@$jl['count'])}
							{pager($jl['count'],$pagesize)}
						{/if}
						</div>
						<!--翻页结束-->
					</div>
					<!--内容结束-->
				</div>
				<!--右侧结束-->
			</div>
			<!--详细结束-->
		</div>
		<!--主体内容结束-->
{temp('html/recruit/pc/foot')}